﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="myweixinlist.aspx.cs" Inherits="MxWeiXinPF.Web.admin.weixin.myweixinlist" %>

<%@ Import Namespace="MxWeiXinPF.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />

    <title>我的微信号</title>

<%=PageJSAndStype("list").ToString() %>

    <script type="text/javascript">
        function parentToIndex(id) {
            parent.location.href = "/admin/Index.aspx?id=" + id;

        }
    </script>
    <style type="text/css">
        .span_kguoqi, .span_jinyong, .span_guoqi {
            color: red;
            font-weight: bold;
        }
    </style>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
       

        <!--工具栏-->
     <div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"></a>



                <div class="l-list">
                    <ul class="icon-list">
                        <li><a class="add" href="editorWeiXin.aspx?action=<%=MXEnums.ActionEnum.Add %>"><i class="iconfont icon-close"></i><span>添加公众帐号</span></a></li>

                    </ul>
                </div>
                <div class="r-list">
                    微信数量： <asp:Label ID="lblHasNum" runat="server" Text="0" CssClass="" ToolTip="已经创建的个数"></asp:Label>
                    / <asp:Label ID="lblTotNum" runat="server" Text="0" CssClass="" ToolTip="总共可以创建的个数"></asp:Label>


                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->
        <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>

                        <th>公众帐号名称</th>
                        <th align="center" width="12%">微信号</th>
                        <th align="center" width="15%">类型</th>
                        <th align="center" width="16%">创建时间/到期时间</th>
                        <th align="center" width="10%">状态</th>
                        <th align="center" width="20%">操作</th>
                    </tr>
                    <tbody class="ltbody">
            </HeaderTemplate>
            <ItemTemplate>
                <tr>

                    <td align="center">
                        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                        <a href="editorWeiXin.aspx?action=<%#MXEnums.ActionEnum.Edit %>&id=<%#Eval("id")%>">
                            <img alt="" src="<%#Eval("headerpic")%>" style="max-height: 40px; max-width: 40px;" />
                            <br />
                            <%# Eval("wxName") %>
                        </a>
                    </td>
                    <td align="center">
                        <%# Eval("weixinCode") %>
                    </td>
                    <td align="center">
                        <%# MyCommFun.WxType(Eval("wxType")) %>
                    </td>
                    <td align="center">创建时间：<%#string.Format("{0:yyyy/MM/dd}",Eval("createDate"))%><br />
                        到期时间： <%#string.Format("{0:yyyy/MM/dd}",Eval("endDate"))%>
                    </td>
                    <td align="center">
                        <%# Eval("extStr") %>
                    </td>
                    <td align="center"><a href="editorWeiXin.aspx?action=<%#MXEnums.ActionEnum.Edit %>&id=<%#Eval("id")%>">
                        <span class="btn">编辑</span></a>&nbsp;&nbsp;
                        
                        <asp:Button ID="Button1" CssClass="btn yellow" runat="server" Text="功能管理" CommandName="toIndex" CommandArgument='<%#Eval("id")%>' />

                    </td>

                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"7\">暂无数据</td></tr>" : ""%>
                 </tbody>
</table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/列表-->

        <!--内容底部-->
        <div class="line20"></div>

        <!--/内容底部-->
    </form>
</body>
</html>
